﻿using System;
using System.Collections.Generic;
using System.Text;
using Android.App;
using Android.Locations;

namespace GBU.Services.LocationService
{
    public class GpsStatusListener:GpsStatus.IListener
    {
        private GpsService gpsService;

        public GpsStatusListener(Service service)
        {
            gpsService = service as GpsService;
        }

        public void OnGpsStatusChanged(GpsEvent e)
        {
            switch (e)
            {
                    case GpsEvent.FirstFix:
                    //第一次定位

                    break;
                    case GpsEvent.SatelliteStatus:
                    //卫星状态改变

                    break;
                    case GpsEvent.Started:
                    //定位启动

                    break;
                    case GpsEvent.Stopped:
                    //定位结束

                    break;
            }
        }

        public void Dispose()
        {
           // throw new NotImplementedException();
        }

        public IntPtr Handle
        {
            get { return (IntPtr)0; }
        }
    }
}
